package com.zhl.emp_manage.test;

/**
 * 无限创建线程，直到无法创建
 */
public class OutOfMemoryError {

    public static void main(String[] args) {

        while (true) {
            Thread thread = new Thread();
            thread.start();
        }

    }
}
